package org.zero.concurrency.demo.example.mq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: concurrency-demo
 * @description: RabbitMQ 配置
 * @author: 01
 * @create: 2018-10-22 20:16
 **/
@Configuration
public class RabbitMqConfig {

    @Bean
    public Queue queue() {
        return new Queue(QueueConstants.TEST);
    }
}
